import request from '@/utils/request'

// 查询文章发布列表分页
export function listRetirementArticle(query) {
  return request({
    url: '/retirement/retirementArticle/list',
    method: 'get',
    params: query
  })
}

// 查询文章发布列表不分页
export function getListRetirementArticle(query) {
  return request({
    url: '/retirement/retirementArticlePublished/getList',
    method: 'get',
    params: query
  })
}

// 查询文章发布详细
export function getRetirementArticle(id) {
  return request({
    url: '/retirement/retirementArticle/' + id,
    method: 'get'
  })
}

// 新增文章发布
export function addRetirementArticle(data) {
  return request({
    url: '/retirement/retirementArticle',
    method: 'post',
    data: data
  })
}

// 修改文章发布
export function updateRetirementArticle(data) {
  return request({
    url: '/retirement/retirementArticle',
    method: 'put',
    data: data
  })
}

// 删除文章发布
export function delRetirementArticle(id) {
  return request({
    url: '/retirement/retirementArticle/' + id,
    method: 'delete'
  })
}
